package com.situ.studentmanagement.dao;

import com.situ.studentmanagement.model.Goods;

import java.util.List;

/**
 * Created by baba on 2016/8/2.
 */
public interface GoodsMapper {
    List<Goods> selectAllGoods();

    List<Goods> getHotGoods(int a, int b);

    List<Goods> selectAllGood();

    List<Goods> getFreeGoods(int page_start_index, int rowsOfPage);


    Goods selectPriceById(Integer goods_id);

    void deleteGoodById(int id);

    Goods getGoodById(int modify_id);

    void setGoodImgById(int good_id, String file_name);

    void setGoodById(int modifyGoodID, String name, int price, Integer isfree, int freeprice);


    List<Goods> getAllGoods(int page_start_index, int rowsOfPage, String name);

    int addGoods(Goods goods);

    List<Goods> getAllGoodsok();

}
